<?php /* Smarty version 2.6.19, created on 2008-06-17 21:16:32
         compiled from user/registration.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'user/registration.tpl', 21, false),array('function', 'html_select_date', 'user/registration.tpl', 56, false),)), $this); ?>
<html>
    
<head>
    <title></title>
    <link rel="stylesheet" href="/media/css/pro.css" type="text/css" media="screen" />
</head>

<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/welcome.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<h4>Registration</h4>

<?php if ($this->_tpl_vars['registration']): ?>
    Поздравляем! Вы успешно зарегистрировались! Вы можете загрузить фотографию прямо <a href="/user/upload/">сейчас</a>. Либо сделать это позже из своего <a href="/">аккаунта</a>.
<?php else: ?>
<span class="error"><?php echo $this->_tpl_vars['error']['empty']; ?>
</span>
<form action="" method="post">
    <table border="0" cellpadding="5">
    <tr>
        <td>Username:<sup>*</sup></td>
        <td>
            <input type="text" name="form[username]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['username'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <span class="error"><?php echo $this->_tpl_vars['error']['username']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Password:<sup>*</sup></td>
        <td>
            <input type="password" name="form[password]" value="" />
            <span class="error"><?php echo $this->_tpl_vars['error']['password']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Password again:<sup>*</sup></td>
        <td><input type="password" name="form[password_again]" value="" /></td>
    </tr>
    <tr>
        <td>E-mail:<sup>*</sup></td>
        <td>
            <input type="text" name="form[mail]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['mail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <span class="error"><?php echo $this->_tpl_vars['error']['mail']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Gender:<sup>*</sup></td>
        <td>
            <select name="form[sex]">
                <option value="" />Your gender
                <option value="male" <?php if ($this->_tpl_vars['form']['sex'] == 'male'): ?>selected<?php endif; ?> />Male
                <option value="female" <?php if ($this->_tpl_vars['form']['sex'] == 'female'): ?>selected<?php endif; ?> />Female
            </select>
        </td>
    </tr>
    <tr>
        <td>Age:<sup>*</sup></td>
        <td>
            <?php echo smarty_function_html_select_date(array('selected_month' => ($this->_tpl_vars['month']),'selected_year' => ($this->_tpl_vars['year']),'selected_day' => ($this->_tpl_vars['day']),'start_year' => "-60",'end_year' => "-8"), $this);?>

            <span class="error"><?php echo $this->_tpl_vars['error']['born']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Phone number:<sup>*</sup></td>
        <td>
            <input type="text" name="form[number]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['number'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <span class="error"><?php echo $this->_tpl_vars['error']['number']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Country/region:<sup>*</sup></td>
        <td>
            <input type="text" name="form[country]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['country'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </td>
    </tr>
    <tr>
        <td>City/other country:<sup>*</sup></td>
        <td><input type="text" name="form[city]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['city'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
    </tr>
    <tr>
        <td>About yourself:</td>
        <td><input type="text" name="form[description]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" name="submit" value="Sign up" /></td>
    </tr>
</table>
</form>
<?php endif; ?>

</body>
</html>